package com.ymttest.database.sqlwapper;

import java.util.List;
import java.util.Map;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;
import com.ymttest.utils.EnvSetup;

/************************************************************************************
 * @File name : YmtUserWapper.java
 * @Author : zhouyi
 * @Date : 2015年4月2日
 * @Copyright : 洋码头
 ************************************************************************************/
public class YmtSellerInfoWapper {
	SqlManager manage;

	public YmtSellerInfoWapper() {
		manage = new SqlManager("ymt" + EnvSetup.getEnv());
	}

	//根据品牌ID查询品牌信息
	public List<Map> getSellerInfoBySellerId(int iUserid)
			throws InterruptedException {
		@SuppressWarnings("unchecked")
		List<Map> ProductCategoryList = manage
				.getSelectResults(
						"com.ymttest.database.mapping.YmtSellerInfoMapper.getSellerInfoBySellerId",
						iUserid);
		manage.commit();
		return ProductCategoryList;
	}

	public static void main(String args[]) {
		try {
			YmtSellerInfoWapper ymtCatalogsIWapper = new YmtSellerInfoWapper();
			List<Map> ret = ymtCatalogsIWapper.getSellerInfoBySellerId(3383);
			Logger.debug(ret.get(0));
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
